<?php defined('IN_ADMIN') or exit('No permission resources.'); ?>
<!DOCTYPE html>
<html lang="zh-cn" <?php if(isset($addbg)) { ?> class="addbg"<?php }?>>
<head>
    <meta charset="utf-8">
    <title> <?php echo L('website_manage');?> </title>
    <meta name="description" content="">
    <meta name="author" content="">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
     <meta name="renderer" content="webkit" /> <link href="<?php echo PLUGIN_STATICS_PATH?>treetable/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo PLUGIN_STATICS_PATH?>treetable/css/jquery.treetable.theme.default.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet"  href="<?php echo ADMIN_PATH?>css/bootstrap.min.css">
    <link rel="stylesheet"  href="<?php echo ADMIN_PATH?>css/font-awesome.min.css">
    <link rel="stylesheet"  href="<?php echo ADMIN_PATH?>css/smartadmin-production.css">
    <link rel="stylesheet"  href="<?php echo ADMIN_PATH?>css/smartadmin-skins.css">
    <link rel="stylesheet"  href="<?php echo ADMIN_PATH?>css/admin-style.css">
    
    
<?php
if(!$this->get_siteid()) showmessage(L('admin_login'),'?m=admin&c=index&a=login');
if(isset($show_dialog)) {
?>
<link href="<?php echo CSS_PATH?>dialog.css" rel="stylesheet" type="text/css" />

<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>dialog.js"></script>
<?php } ?>
  <script data-pace-options='{ "restartOnRequestAfter": true }' src="<?php echo ADMIN_PATH?>js/plugin/pace/pace.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/libs/jquery-2.0.2.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/libs/jquery-ui-1.10.3.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/bootstrap/bootstrap.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/smartwidgets/jarvis.widget.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/notification/SmartNotification.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/plugin/msie-fix/jquery.mb.browser.min.js"></script>
<script src="<?php echo ADMIN_PATH?>js/plugin/fastclick/fastclick.js"></script>
<script src="<?php echo ADMIN_PATH?>js/plugin/pin/jquery.pin.js"></script>
<script src="<?php echo ADMIN_PATH?>js/admin.js"></script>
<script src="<?php echo ADMIN_PATH?>js/app.js"></script>
<script src="<?php echo ADMIN_PATH?>js/plugin/jquery-validate/jquery.validate.min.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>admin_common.js"></script>
<?php if(isset($show_validator)) { ?>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>formvalidator.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>formvalidatorregex.js" charset="UTF-8"></script>
<?php } ?>
<script language="javascript" type="text/javascript" src="<?php echo ADMIN_PATH?>js/DatePicker/WdatePicker.js"></script>
    <script type="text/javascript">
	window.focus();
	var pc_hash = '<?php echo $_SESSION['pc_hash'];?>';
	<?php if(!isset($show_pc_hash)) { ?>
		window.onload = function(){
		var html_a = document.getElementsByTagName('a');
		var num = html_a.length;
		for(var i=0;i<num;i++) {
			var href = html_a[i].href;
				
				if(href.indexOf('#') == -1 && href.indexOf('javascript:') == -1) {
					if(href.indexOf('?') != -1) {
						html_a[i].href = href+'&pc_hash='+pc_hash;
					} else {
						html_a[i].href = href+'?pc_hash='+pc_hash;
					}
			}
		}

		var html_form = document.forms;
		var num = html_form.length;
		for(var i=0;i<num;i++) {
			var newNode = document.createElement("input");
			newNode.name = 'pc_hash';
			newNode.type = 'hidden';
			newNode.value = pc_hash;
			html_form[i].appendChild(newNode);
		}
	}
<?php } ?>
 $(function() {
 	 pageSetUp();
 	 $(".pinned").pin({minWidth: 1440, containerSelector: ".table-content"})
 });
</script>
</head>
<body>
<?php if(!isset($show_header)) { ?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
    <?php if(isset($big_menu)) { echo '<a class="add fb" href="'.$big_menu[0].'"><em>'.$big_menu[1].'</em></a>　';} else {$big_menu = '';} ?>
    <?php echo admin::submenu($_GET['menuid'],$big_menu); ?>
    </div>
</div>
<?php } ?>
<style type="text/css">
	html{_overflow-y:scroll}
</style>